import java.util.*;
public class Salary extends CompanyDetail implements SwapnilHash
{
	int salary,workExp;
	String key="";	
	public Salary()
	{
		super();
		
	}
	/*
		get the detail of Salary 
	*/
	
	public void GetSalaryData()
	{
		Scanner s = new Scanner(System.in);
		System.out.print("\n enter the Salary : ");
		salary=s.nextInt();
		System.out.print("\n enter the Work exp : ");
		workExp=s.nextInt();
	}


	/*
		Display the detail of Salary
	*/
	public void Display(int sal,int exp)
	{
		System.out.print("    "+salary);
		System.out.print("    "+workExp);
	}

	public String Hashcode()
	{
		key="";                                          //Create hashcode of Object
		return (key=key+(this.Empid+this.Age));
	}


	/* 
		Here  equals function check Whether both object are equal or not 
	*/

	public boolean equals(Object arg1)
	{
		String val1=this.Hashcode();
		String val2=((Salary)arg1).Hashcode();
	
		if(arg1!=null);
		{
			
			if(val1.equals(val2))
			{
				
				if(this==((Salary)arg1))
					return true;
				else
					return false;
			}
		}
		return false;
			
	}
}
